const parentCode = "systemManagement";
export default [
  {
    path: "/systemManagement",
    meta: {
      title: "系统管理",
      code: parentCode, //来确定是哪个模块，一级菜单的code
    },
    component: (resolve) => require(["@/views/systemManagement"], resolve),
    children: [
      {
        path: "/",
        redirect: "userManagement",
      },
      {
        path: "userManagement",
        meta: {
          title: "用户管理",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "userManagement", //二级菜单的code
        },
        component: (resolve) =>
          require(["@/views/systemManagement/userManagement"], resolve),
        children: [
          {
            path: "/",
            redirect: "informationManagement",
          },
          {
            path: "informationManagement",
            name: "informationManagement",
            meta: {
              title: "用户信息管理",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "userManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/systemManagement/userManagement/informationManagement",
              ], resolve),
          },
          {
            path: "informationReview",
            name: "informationReview",
            meta: {
              title: "用户信息审核",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "userManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/systemManagement/userManagement/informationReview",
              ], resolve),
          },
        ],
      },
      {
        path: "organizationManagement",
        name: "organizationManagement",
        meta: {
          title: "组织管理",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "organizationManagement",
        },
        component: (resolve) =>
          require(["@/views/systemManagement/organizationManagement"], resolve),
      },
      {
        path: "authManagement",
        meta: {
          title: "权限管理",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "authManagement", //二级菜单的code
        },
        component: (resolve) =>
          require(["@/views/systemManagement/authManagement"], resolve),
        children: [
          {
            path: "/",
            redirect: "characterManagement",
          },
          {
            path: "characterManagement",
            name: "characterManagement",
            meta: {
              title: "角色管理",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "authManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/systemManagement/authManagement/characterManagement",
              ], resolve),
          },
          {
            path: "menuManagement",
            name: "menuManagement",
            meta: {
              title: "菜单管理",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "authManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/systemManagement/authManagement/menuManagement",
              ], resolve),
          },
        ],
      },
      {
        path: "configurationManagement",
        meta: {
          title: "配置管理",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "configurationManagement",
        },
        component: (resolve) =>
          require([
            "@/views/systemManagement/configurationManagement",
          ], resolve),
        children: [
          {
            path: "/",
            redirect: "dataDictionary",
          },
          {
            path: "dataDictionary",
            name: "dataDictionary",
            meta: {
              title: "数据字典",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "configurationManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/systemManagement/configurationManagement/dataDictionary",
              ], resolve),
          },
          {
            path: "configItem",
            name: "configItem",
            meta: {
              title: "配置项",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "configurationManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/systemManagement/configurationManagement/configItem",
              ], resolve),
          },
          {
            path: "postConfig",
            name: "postConfig",
            meta: {
              title: "岗位配置",
              parentCode: parentCode, //来确定是哪个模块，一级菜单的code
              code: "configurationManagement", //二级菜单的code
            },
            component: (resolve) =>
              require([
                "@/views/systemManagement/configurationManagement/postConfig",
              ], resolve),
          },
          
        ],
      },
      {
        path: "applicationManagement",
        name: "applicationManagement",
        meta: {
          title: "应用管理",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "applicationManagement",
        },
        component: (resolve) =>
          require(["@/views/systemManagement/applicationManagement"], resolve),
      },
      {
        path: "noticeManagement",
        meta: {
          title: "通知管理",
          parentCode: parentCode, //来确定是哪个模块，一级菜单的code
          code: "noticeManagement", //二级菜单的code
        },
        component: (resolve) =>
          require(["@/views/systemManagement/noticeManagement"], resolve),
          children: [
            {
              path: "/",
              redirect: "messageConfig",
            },
            {
              path: "messageConfig",
              name: "messageConfig",
              meta: {
                title: "消息配置",
                parentCode: parentCode, //来确定是哪个模块，一级菜单的code
                code: "noticeManagement", //二级菜单的code
              },
              component: (resolve) =>
                require([
                  "@/views/systemManagement/noticeManagement/messageConfig",
                ], resolve),
            },
            {
              path: "noticeRecord",
              name: "noticeRecord",
              meta: {
                title: "通知记录",
                parentCode: parentCode, //来确定是哪个模块，一级菜单的code
                code: "noticeManagement", //二级菜单的code
              },
              component: (resolve) =>
                require([
                  "@/views/systemManagement/noticeManagement/noticeRecord",
                ], resolve),
            },
          ]
      }
    ],
  },
];
